package com.yjymm.commonsdk.common.component.wechat;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * @author panhaoxiong
 * @date 2021-02-07 16:18
 *
 * 微信小程序配置
 */

@Data
@EnableConfigurationProperties(WXSmallAppProperties.class)
@ConditionalOnProperty(name = "wx.smallapp")
@ConfigurationProperties(prefix = "wx.smallapp")
public class WXSmallAppProperties {

    private String appid;
    private String appserect;
    private String gratType = "authorization_code";
    private String codeUrl = "https://api.weixin.qq.com/sns/jscode2session?appid={0}&secret={1}&js_code={2}&grant_type=authorization_code";

}
